package com.linghu.furn.service.Impl;

import com.linghu.furn.bean.Furn;
import com.linghu.furn.dao.FurnMapper;
import com.linghu.furn.service.FurnService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author 令狐荣豪
 * @version 1.0
 */
@Service
public class FurnServiceImpl implements FurnService{
    @Resource
    FurnMapper furnMapper;//不用new了，直接spring注入

    @Override
    public void save(Furn furn) {
        furnMapper.insertSelective(furn);
        System.out.println("数据插入成功！");
    }
}
